package com.nook.model;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@Table("T_SYSUSER")
public class SysUser {
    /**
     * 用户ID (B端)
     */
    @Id(keyType = KeyType.None)
    @Column(value = "IIDD")
    public String iidd;

    /**
     * 登录账户
     */
    @Column(value = "SYSUSER_ACCOUNT")
    public String sysuserAccount;

    /**
     * 登录密码
     */
    @Column(value = "PASSWORD")
    public String password;

    /**
     * 加密盐
     */
    @Column(value = "SALT")
    public String salt;

    /**
     * 电话号码
     */
    @Column(value = "TELEPHONE")
    public String telephone;

    /**
     * 用户名称
     */
    @Column(value = "SYSUSER_NAME")
    public String sysuserName;

    /**
     * 真实姓名
     */
    @Column(value = "REAL_NAME")
    public String realName;

    /**
     * 用户类型：0
     * 后台用户（迈戈公司员工，默认）；1.供应商；2.客户; 3.经销商；
     */
    @Column(value = "SYSUSER_TYPE")
    public Integer sysuserType;

    /**
     * 类型用户的ID：供应商ID，客户ID，办事处ID 等
     */
    @Column(value = "CORRELATIVE_USER_ID")
    public String correlativeUserId;

    /**
     * 注册平台、注册来源 0: 后台添加/导入， 1: 商城注册
     */
    @Column(value = "REGISTER_FORM")
    public Integer registerForm;

    /**
     * 性别  0 - 未填写1 - 男2 - 女
     */
    @Column(value = "SEX")
    public Integer sex;

    /**
     * 婚姻状态 0 - 未填写    1 - 未婚    2 - 已婚
     */
    @Column(value = "MARITAL_STATUS")
    public Integer maritalStatus;

    /**
     * 用户头像
     */
    @Column(value = "HEAD_IMG_URL")
    public String headImgUrl;

    /**
     * 身份证号码
     */
    @Column(value = "ID_CARD")
    public String idCard;

    /**
     * 教育程度
     */
    @Column(value = "EDUCATIONAL_LEVEL")
    public String educationalLevel;

    /**
     * 毕业院校
     */
    @Column(value = "GRADUATED_FROM")
    public String graduatedFrom;

    /**
     * QQ
     */
    @Column(value = "QQ")
    public String qq;

    /**
     * 微信
     */
    @Column(value = "WECHAT")
    public String wechat;

    /**
     * 用户邮箱
     */
    @Column(value = "EMAIL")
    public String email;

    /**
     * 生日
     */
    @Column(value = "BIRTHDAY")
    public Date birthday;

    /**
     * 入职时间
     */
    @Column(value = "HIRE_TIME")
    public Date hireTime;

    /**
     * 组织架构ID
     */
    @Column(value = "ORGANIZE_ID")
    public String organizeId;

    /**
     * 职位(岗位、头衔)ID；引用用户服务T_POSITION表主键ID
     */
    @Column(value = "POSITION_ID")
    public String positionId;

    /**
     * 员工编号
     */
    @Column(value = "EMPLOYEE_SN")
    public String employeeSn;

    /**
     * 用户状态  0正常、启用（默认）1禁用、黑名单    2删除，不显示\R\N 3异常
     */
    @Column(value = "STATUS")
    public Integer status;

    /**
     * 禁用用户的理由/原因
     */
    @Column(value = "CANCEL_REASON")
    public String cancelReason;

    /**
     * 备注
     */
    @Column(value = "REMARK")
    public String remark;

    /**
     * 排序
     */
    @Column(value = "SORT_ORDER")
    public Integer sortOrder;

    /**
     * 创建人ID (B端)
     */
    @Column(value = "CREATE_USER_ID")
    public String createUserId;

    /**
     * 修改人ID (B端)
     */
    @Column(value = "UPDATE_USER_ID")
    public String updateUserId;

    /**
     * 创建时间
     */
    @Column(value = "CREATE_DATE")
    public Date createDate;

    /**
     * 修改时间
     */
    @Column(value = "MODIFY_DATE")
    public Date modifyDate;

    /**
     * 所属经销商的ID
     */
    @Column(value = "AGENCY_ID")
    public String agencyId;

    /**
     * 0 普通用户 1后台添加用户
     */
    @Column(value = "SYSTEM_USER_TYPE")
    public Integer systemUserType;

    /**
     * 职称(如：教授，高级工程师)
     */
    @Column(value = "TITLE")
    public String title;

    /**
     * 地址
     */
    @Column(value = "ADDRESS")
    public String address;

    /**
     * 更新密码时间
     */
    @Column(value = "UPDATE_PWD_DATE")
    public Date updatePwdDate;
}
